//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "SniperTraining\fn_resetScores.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_players","_x","_initial"];
_players = [];
if (isMultiplayer) then {
	_players = playableUnits;
} else {
	_players = [player];
};

{
	if (isPlayer _x) then {
		_initial = score _x;
		_x addScore (0 - score _x);
		_x addRating 20000;
		TRACE_2("Score Updated",_initial, score _x);
	};
} foreach _players;

TRACE("End");
TMFPROFILERSTOP;
